function createObject(obj) {
    function F() { }
    F.prototype = obj
    return new F()
}
function inherit(subType, superType) {
    subType.prototype = createObject(superType.prototype)
    // Object.defineProperty(subType.prototype, 'constructor', {
    //     enumerable: false,
    //     value: subType,
    //     configurable: true,
    //     writable: true
    // })
}
function Person(name, age, height) {
    this.name = name
    this.age = age
    this.height = height
}
Person.prototype.running = function () {
    console.log(this.name, '在跑步');
}
function Student(name, age, height, sno) {
    Person.call(this, name, age, height)
    this.sno = sno
}
inherit(Student,Person)

Student.prototype.studying=function(){
    console.log('在学习');
}

var s1 = new Student('lyy',14,2222,23)
s1.running()

console.log(Student);